Constructs an HDRImage by reading a PFM-formatted stream.
the decoded HDRImage
the input stream containing PFM data
if the stream does not conform to the PFM specification